	function init (){
		var video = document.querySelector("video");
		var i = 0;
		video.addEventListener("ended",function(){
			++i
			if(i>1){
				video.play();
				return;
			}
			var button = document.querySelector("button");
			button.style.display="block";
			button.addEventListener("tap",function(){
				localStorage.setItem("oneget","getone");
				mui.openWindow({
				    id:'login.html',
				    url:"../login/login.html",
				});
				OnDestroy(null);
			})
			video.play();
		})
		video.addEventListener("timeupdate",function(e){
	//		var time = Math.floor(video.currentTime) + "/" + Math.floor(video.duration) + " 秒";
		})
	}
	
	init();
